package trouger.dmt;

/**
 * A filter that is applied in the end of reduce phase just before a record is to be output.
 * Every outgoing record will pass through this filter, if specified.
 */
public interface OutputRecordFilter {
	/**
	 * This method tells whether a record is allowed to output.
	 * Besides, record fields can be modified in the method.
	 * @param record the record, where record[1] is the first field
	 * @return true if this record is allowed to output, false to ignore this record.
	 */
	public boolean filterRecord(Object[] record);
}
